package com.chengyu.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class StockBlockDomain {
    //公司数量
    private Integer companyNum;
    //交易量
    private Long tradeAmt;
    //板块代码
    private String code;
    //平均价
    private BigDecimal avgPrice;
    //板块名称
    private String name;
    //当前日期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "Asia/Shanghai")
    private String curDate;
    //交易金额
    private BigDecimal tradeVol;
    //涨跌率
    private BigDecimal updownRate;
}
